﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuperX.DataService.Abstract
{
    public class GridItem
    {
        private string _address;
        private string _name;
        private string _value;
        private string _dataType;
        private string _accessLevel;

        public string AccessLevel
        {
            get => _accessLevel;
            set
            {
                // ReSharper disable once RedundantCheckBeforeAssignment
                if (_accessLevel != value)
                {
                    _accessLevel = value;
                }
            }
        }

        public string DataType
        {
            get => _dataType;
            set
            {
                if (_dataType != value)
                {
                    _dataType = value;
                }
            }
        }

        public string Value
        {
            get => _value;
            set
            {
                if (_value != value)
                {
                    _value = value;
                }
            }
        }

        public string Name
        {
            get => _name;
            set
            {
                if (_name != value)
                {
                    _name = value;
                }
            }
        }

        private String _description;

        public string Description
        {
            get => _description;
            set
            {
                if (_description != value)
                {
                    _description = value;
                }
            }
        }

        public string Address
        {
            get => _address;
            set
            {
                if (_address != value)
                {
                    _address = value;
                }
            }
        }
    }
}